package edu.zut.cs.software.person.admin.domain;

    import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.module.goodsShelf.domain.GoodsCategory;
import edu.zut.cs.software.teach.Base.domain.BaseEntity;
/**
 * 
 * @author wangyunfei
 *
 */
	@Entity
	@Table(name = "T_Admin")
	public class Admin extends BaseEntity<Long> {


		private static final long serialVersionUID = -2411978175041541798L;

		
		/*
		 * 管理员名称
		 */
		@Column
		String name;

		/*
		 * 管理员名称
		 */

		@Column
		String number;
		
		@ManyToOne
		@JoinColumn(name = "T_AdminCategory_ID")
		AdminCategory admincategory;
		
		public AdminCategory getAdminCategory() {
			return admincategory;
		}

		public void setAdminCategory(AdminCategory admincategory) {
			this.admincategory =admincategory;
		}


		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getNumber() {
			return number;
		}

		public void setNumber(String number) {
			this.number = number;
		}

		public static long getSerialversionuid() {
			return serialVersionUID;
		}
	}

